net-snmp: add logging to init script
authorChristian Korber <[email protected]>
Tue, 25 Mar 2025 19:53:09 +0000 (20:53 +0100)
committerFlorian Eckert <[email protected]>
Mon, 11 Aug 2025 06:13:44 +0000 (08:13 +0200)
commit7b616873d66248e9a999b3d4a63bd22486fa1f72
treec66809d1fce1ad08712b97f59111e359b74c9423
parent2fc221699dfa296cd13af23827498bf24dfbc97a
net-snmp: add logging to init script

To support logging in net-snmp this commit introduces this feature. There is
a new uci config section 'logging'.

The following new parameters are used:

config logging
option log_file '/var/log/snmpd.log'
option log_file_priority 'i'
option log_syslog '0'
option log_syslog_facility 'd'

Signed-off-by: Christian Korber <[email protected]>
Signed-off-by: Florian Eckert <[email protected]>
net/net-snmp/files/snmpd.conf
net/net-snmp/files/snmpd.init